package jin.si.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class JsUserOrderShop {

  private Integer shopId;//购物车id
  private Integer productId;//商品id
  private Integer userId;//用户id
  private Integer productNum;//商品购买数量
  private Integer productType;//商品类型（2、视频，3商品）
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date createTime;//创建时间
  private Integer countNum;//计算总量

  public JsUserOrderShop() {
    super();
  }

  public JsUserOrderShop(Integer shopId, Integer productId, Integer userId, Integer productNum, Integer productType, Date createTime, Integer countNum) {
    this.shopId = shopId;
    this.productId = productId;
    this.userId = userId;
    this.productNum = productNum;
    this.productType = productType;
    this.createTime = createTime;
    this.countNum = countNum;
  }

  public Integer getShopId() {
    return shopId;
  }

  public void setShopId(Integer shopId) {
    this.shopId = shopId;
  }

  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Integer getProductNum() {
    return productNum;
  }

  public void setProductNum(Integer productNum) {
    this.productNum = productNum;
  }

  public Integer getProductType() {
    return productType;
  }

  public void setProductType(Integer productType) {
    this.productType = productType;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Integer getCountNum() {
    return countNum;
  }

  public void setCountNum(Integer countNum) {
    this.countNum = countNum;
  }

  @Override
  public String toString() {
    return "JsUserOrderShop{" +
            "shopId=" + shopId +
            ", productId=" + productId +
            ", userId=" + userId +
            ", productNum=" + productNum +
            ", productType=" + productType +
            ", createTime=" + createTime +
            ", countNum=" + countNum +
            '}';
  }
}
